﻿#include "ZFileLogger.h"
#include "ZFileLoggerPrivate.h"

ZFLIB_BEGIN_NAMESPACE

ZFileLogger::ZFileLogger(const QString &file_path)
    : m_impl(new ZFileLoggerPrivate(file_path))
{

}

ZFileLogger::~ZFileLogger()
{

}

ZFileLogger &ZFileLogger::operator<<(const QString &msg)
{
    *m_impl << msg;
    return *this;
}

ZFileLogger &ZFileLogger::operator<<(const QStringList &msgs)
{
    *m_impl << msgs;
    return *this;
}

void ZFileLogger::setNewLineSymbol(const QString &symbol)
{
    m_impl->setNewLineSymbol(symbol);
}

ZFLIB_END_NAMESPACE
